package util

func UnionList(list []int64) []int64 {
	clearUids := []int64{}
	tmp := make(map[int64]bool)
	for _, uid := range list {
		if _, ok := tmp[uid]; !ok {
			clearUids = append(clearUids, uid)
			tmp[uid] = true
		}
	}
	return clearUids
}
